package com.sysd.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @description:
 * @author: bsh
 * @date: 2025/6/14 13:52
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ErrorMessage extends BaseMessage {
    private int code;
    private String msg;

    public static ErrorMessage defaultError(String msg){
        return new ErrorMessage(-1,msg);
    }
}
